package com.snailvr.tv.network.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/2/16.
 */

public class JXListResponBean implements Serializable{

    /**
     * code : 0
     * msg : channel-list success.
     * data : {"count":1,"list":[{"id":9,"name":"测试视频","downloadurl":"http://lms.readyvr.woniucloud.com/lms/page/login","desc":"测试","order":1,"thumb":"http://lms.readyvr.woniucloud.com/upload/5ebc245009d75b2923a74d05733770e6.jpg"}]}
     */

    private int code;
    private String msg;
    /**
     * count : 1
     * list : [{"id":9,"name":"测试视频","downloadurl":"http://lms.readyvr.woniucloud.com/lms/page/login","desc":"测试","order":1,"thumb":"http://lms.readyvr.woniucloud.com/upload/5ebc245009d75b2923a74d05733770e6.jpg"}]
     */

    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private int count;
        /**
         * id : 9
         * name : 测试视频
         * downloadurl : http://lms.readyvr.woniucloud.com/lms/page/login
         * desc : 测试
         * order : 1
         * thumb : http://lms.readyvr.woniucloud.com/upload/5ebc245009d75b2923a74d05733770e6.jpg
         */

        private List<ListBean> list;

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean {
            public enum DownloadStatus {
                UnDownLoad,
                Downloading,
                Downloaded;
            }
            private int id;
            private String name;
            private String downloadurl;
            private String desc;
            private int order;
            private String thumb;
            private DownloadStatus downloadStatus = DownloadStatus.UnDownLoad;
            private long progress = 0;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getDownloadurl() {
                return downloadurl;
            }

            public void setDownloadurl(String downloadurl) {
                this.downloadurl = downloadurl;
            }

            public String getDesc() {
                return desc;
            }

            public void setDesc(String desc) {
                this.desc = desc;
            }

            public int getOrder() {
                return order;
            }

            public void setOrder(int order) {
                this.order = order;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public DownloadStatus getDownloadStatus() {
                return downloadStatus;
            }

            public void setDownloadStatus(DownloadStatus status) {
                this.downloadStatus = status;
            }

            public long getProgress() {
                return this.progress;
            }

            public void setProgress(long progress) {
                this.progress = progress;
            }
        }
    }
}
